<template>
  <div class="loading1" :style="{display: loading?'block':'none'}">
    <div class="loading_img">
      <img src="../../assets/screen/1.svg" alt="">
    </div>
  </div>
</template>

<script>
  export default {
    name: "loading1",
    props: {
      loading: {
        type: Boolean,
        default: false
      }
    },
    data() {
      return {}
    },
    created() {

    },
    methods: {}
  }
</script>

<style scoped lang="scss">
  .loading1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    background: rgba(0,0,0,1);
    display: none;
    .loading_img{
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      img{
        width: 60px;
        height: 60px;
      }
    }
  }
</style>
